package com.say.bean.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.say.bean.common.BaseEntity;

@Entity
@Table(name = "user")
public class User extends BaseEntity{
	
    private static final long serialVersionUID = 1374006756351004109L;
    
    private String openId;
 
    private String wxName;//微信昵称

    private String photo;//本地头像

    private Date createTime;//创建时间

    private Date lastUpdateTime;//修改时间

    private String weixinPhoto;//微信头衔

    private Integer subscribe;//是否已关注 1 已关注  0或其他未关注

    private Integer sex;

    private String country;

    private String province;

    private String city;

    private String language;

    private String unionid;

    private String userName;// 用户姓名

    private String mobile;// 手机号
    
    private String password;// 密码
    
    private String mood;
    
    private String latitude;
    
    private String longitude;
    
    @Column(name = "open_id")
    @JSONField(serialize = false)
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Column(name = "wx_name")
    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    @Column(name = "photo")
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Column(name = "create_time", updatable = false)
    @JSONField(serialize = false)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "last_update_time", insertable = false)
    @JSONField(serialize = false)
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Column(name = "weixin_photo")
    public String getWeixinPhoto() {
        return weixinPhoto;
    }

    public void setWeixinPhoto(String weixinPhoto) {
        this.weixinPhoto = weixinPhoto;
    }
    
    @Column(name = "subscribe")
    public Integer getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Integer subscribe) {
        this.subscribe = subscribe;
    }

    @Column(name = "sex")
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Column(name = "country")
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Column(name = "unionid")
    @JSONField(serialize = false)
    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    @Column(name = "language")
    @JSONField(serialize = false)
    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "mobile")
    @JSONField(serialize = false)
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Column(name = "password")
    @JSONField(serialize = false)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		this.mood = mood;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

    
    
}
